package com.nihao001.parse.config;

import java.util.HashMap;
import java.util.Map;

public class ParameterConfig {

	private String classFullName = null;
	private Map<String, Parameter> parameterMap = new HashMap<String, Parameter>();

	public String getClassFullName() {
		return classFullName;
	}

	public void setClassFullName(String classFullName) {
		this.classFullName = classFullName;
	}

	public void addParameter(Parameter parameter) {
		if (parameterMap.containsKey(parameter.getPropertyName())) {
			throw new IllegalArgumentException("parameter is duplicate. parameterName="
					+ parameter.getParameterName() + ", propertyName="
					+ parameter.getPropertyName());
		} else {
			parameterMap.put(parameter.getPropertyName(), parameter);
		}
	}

	public Map<String, Parameter> getParameterMap() {
		return parameterMap;
	}

}